The splice() methods can be used to remove array elements.